import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入全局样式
import '@/styles/common.less'
// 注册全局组件
import componentPlugin from '@/components/'
import directivePlugin from '@/directive/'
// use相当于之前的vue.use，作用是注册插件
// 创建一个实例对象，然后先注册store(vuex)，在注册router(路由)
createApp(App).use(store).use(router).use(componentPlugin).use(directivePlugin).mount('#app')
